import java.io.File;
import java.io.FileFilter;

public class FilesOnlyTypeFilesOnlyFilter implements FileFilter{
	
	private String key;
	
	public FilesOnlyTypeFilesOnlyFilter(String key){
	this.key = key.replace("@", "");
	}
	
	@Override
	public boolean accept(File f) {	
		return f.isFile()&&f.getName().endsWith(key);
	}
}
